package com.hnnu.shoppingtoghter.demo.mapper;

import com.hnnu.shoppingtoghter.demo.entity.Contact;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description:
 * @Author: 刘艾环
 * @CreateTime： 2022/7/7 3:00
 */
@Mapper
public interface SysContactMapper {
    List<Contact> selectListByContact(Contact contact);


    int updateContactIsdefaultPre(Long userId);

    int updateContactIsdefaultPost(Long contactId);

    int insertContact(Contact contact);

    Contact selectContactById(Long id);

    int deleteById(Long contactId);

    int updateContact(Contact contact);
}
